package miage.rest.model;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Lou
 */
public class AnneeSession implements Serializable {
    private static final long serialVersionUID = 1L;
    private String idAnneeSession;
    private Date debutSemestre1;
    private Date finSemestre1;
    private Date debutSemestre2;
    private Date finSemestre2;


    public AnneeSession() {
    }

    public AnneeSession(String idAnneeSession) {
        this.idAnneeSession = idAnneeSession;
    }

    public String getIdAnneeSession() {
        return idAnneeSession;
    }

    public void setIdAnneeSession(String idAnneeSession) {
        this.idAnneeSession = idAnneeSession;
    }

    public Date getDebutSemestre1() {
        return debutSemestre1;
    }

    public void setDebutSemestre1(Date debutSemestre1) {
        this.debutSemestre1 = debutSemestre1;
    }

    public Date getFinSemestre1() {
        return finSemestre1;
    }

    public void setFinSemestre1(Date finSemestre1) {
        this.finSemestre1 = finSemestre1;
    }

    public Date getDebutSemestre2() {
        return debutSemestre2;
    }

    public void setDebutSemestre2(Date debutSemestre2) {
        this.debutSemestre2 = debutSemestre2;
    }

    public Date getFinSemestre2() {
        return finSemestre2;
    }

    public void setFinSemestre2(Date finSemestre2) {
        this.finSemestre2 = finSemestre2;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idAnneeSession != null ? idAnneeSession.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AnneeSession)) {
            return false;
        }
        AnneeSession other = (AnneeSession) object;
        if ((this.idAnneeSession == null && other.idAnneeSession != null) || (this.idAnneeSession != null && !this.idAnneeSession.equals(other.idAnneeSession))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "miage.rest.model.AnneeSession[idAnneeSession=" + idAnneeSession + "]";
    }

}
